﻿@model IntegralControllerModel.Index
<div class="my-main">
    <div class="ui-box  ui-box-alpha">
        <div class="ui-box-head">
            <div class="ui-box-head-border">
                <div class="ui-box-head-title">
                    我的积分</div>
                <span class="ui-box-head-text"></span><a href="#" class="ui-box-head-more"></a>
            </div>
        </div>
        <div class="ui-box-container">
            <div class="ui-box-content">
                <div class="ui-tiptext-container ui-tiptext-container-message">
                    <p class="ui-tiptext ui-tiptext-message">
                        <i class="ui-tiptext-icon iconfont" title="提示"></i> 固定电话格式为：国家代码-区号-电话号码 如：086-010-12345678
                        或者为：区号-电话号码-分机号（分机号可不填）如：010-12345678-123。
                    </p>
                </div>
            </div>
        </div>
        <div class="ui-box-container-noborder">
            <div class="ui-box-content">
            </div>
        </div>
        <div class="ui-box-container-noborder">
            <table class="ui-table ui-table-inbox ui-table-alpha">
                <thead>
                    <tr>
                        <th>
                            来源 / 用途
                        </th>
                        <th>
                            收入
                        </th>
                        <th>
                            支出
                        </th>
                        <th>
                            状态
                        </th>
                        <th>
                            日期
                        </th>
                        <th>
                            备注
                        </th>
                    </tr>
                </thead>
                @if (Model.PointDetails.Count > 0)
                {
                    <tbody>
                        @Model.PointDetails.Each(@<tr class="@item.Css">
                            <td>
                                <a href="/order/detail/@(item.Item.Id)" target="_blank">@item.Item.Id</a>
                            </td>
                            <td>@(item.Item.Category == IntegralCategory.Increase ? item.Item.Point.ToString() : string.Empty)
                            </td>
                            <td>@(item.Item.Category == IntegralCategory.Decrease ? item.Item.Point.ToString() : string.Empty)
                            </td>
                            <td>@(item.Item.Status)
                            </td>
                            <td style="color: #999999;">@item.Item.CreatedOn.ToString("yyyy-MM-dd HH:mm:ss")
                            </td>
                            <td>@item.Item.Memo
                            </td>
                        </tr>)</tbody>}
                else
                {
                    <tbody>
                        <tr>
                            <td colspan="6" class="empty">
                                <span class="field-validation-error">暂无</span>
                            </td>
                        </tr>
                    </tbody>}
            </table>
            <div>
                @Html.Pager(Model.PointDetails)
            </div>
        </div>
    </div>
</div>
